﻿using Mandy.Config.Model;
using System;
using Microsoft.AspNetCore.Hosting;
using System.Collections.Generic;
using System.Text;

namespace Mandy.Config.Utility
{
    public class GlobalContext
    {
        public static SystemConfig SystemConfig { get; set; }
        public static IWebHostEnvironment WebHostEnvironment { get; set; }

        public static bool IsProduct
        {
            get
            {
                return WebHostEnvironment?.EnvironmentName == "Product";
            }
        }
    }
}
